import request from '@/utils/request'

export function listtsStock(query) {
  return request({
    url: '/material/tsStock/list',
    method: 'get',
    params: query
  })
}

export function createtsStock(data) {
  return request({
    url: '/material/tsStock/create',
    method: 'post',
    data
  })
}

export function readtsStock(data) {
  return request({
    url: '/material/tsStock/get/' + data.id,
    method: 'get'
  })
}

export function updatetsStock(data) {
  return request({
    url: '/material/tsStock/update',
    method: 'post',
    data
  })
}

export function deletetsStock(data) {
  return request({
    url: '/material/tsStock/delete/' + data.fstockno,
    method: 'delete'
  })
}
